const Mock = require("mockjs");

export default {
	"POST /api/token": (req, res) => {
		const resc = {
			code: 200,
			data: {
				token: "SCUI.Administrator.Auth",
				userInfo: {
					userId: "1",
					userName: "Administrator",
					dashboard: "0",
					role: ["SA", "admin", "Auditor"],
				},
			},
			message: "",
		};
		return res.json(Mock.mock(resc));
	},
};
